import 'package:lyf_shop/http/core/lyf_net_adapter.dart';
import 'package:lyf_shop/http/request/base_request.dart';

class MockAdapter extends LyfNetAdapter {
  @override
  Future<LyfNetResponse<T>> send<T>(BaseRequest request) {
    // TODO: implement send
    return Future<LyfNetResponse<T>>.delayed(Duration(milliseconds: 1000), () {
      return LyfNetResponse(
          data: {"name": "来伊份", "cid": "10086"} as T, code: 200, message: "成功");
    });
  }
}
